@model ShivamEMR.Model.Domain.PatientDomain.PatientGroup

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>PatientGroup</legend>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Model.Group</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Parents</div>
    <div class="display-field">@(Model.Parents == null ? "None" : Model.Parents.Count.ToString())</div>

    <div class="display-label">Children</div>
    <div class="display-field">@(Model.Children == null ? "None" : Model.Children.Count.ToString())</div>

    <div class="display-label">Patients</div>
    <div class="display-field">@(Model.Patients == null ? "None" : Model.Patients.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


